Skip to content

chore(deps): bump go to 1.26.3 in all go.mod files#27772

Closed
reggie-k wants to merge 1 commit into
argoproj:masterfrom
reggie-k:bump-go-to-1.26.3
Closed

chore(deps): bump go to 1.26.3 in all go.mod files#27772
reggie-k wants to merge 1 commit into
argoproj:masterfrom
reggie-k:bump-go-to-1.26.3

Conversation

@reggie-k

Copy link
Copy Markdown
Member

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Title of the PR
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Signed-off-by: reggie-k <regina.voloshin@codefresh.io>
@reggie-k reggie-k requested a review from a team as a code owner May 10, 2026 09:05
@bunnyshell

bunnyshell Bot commented May 10, 2026

Copy link
Copy Markdown

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@reggie-k reggie-k changed the title dep: bump go to 1.2.6.3 in all go.mod files dep: bump go to 1.26.3 in all go.mod files May 10, 2026
@reggie-k reggie-k changed the title dep: bump go to 1.26.3 in all go.mod files chore (deps): bump go to 1.26.3 in all go.mod files May 10, 2026
@reggie-k reggie-k changed the title chore (deps): bump go to 1.26.3 in all go.mod files chore(deps): bump go to 1.26.3 in all go.mod files May 10, 2026
@codecov

codecov Bot commented May 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.99%. Comparing base (5ec0603) to head (aa64e6e).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27772      +/-   ##
==========================================
+ Coverage   63.96%   63.99%   +0.03%     
==========================================
  Files         421      421              
  Lines       57774    57774              
==========================================
+ Hits        36954    36973      +19     
+ Misses      17339    17321      -18     
+ Partials     3481     3480       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread go.mod
// Do NOT bump this unless we use features that are only available on the new version.
// If you want to update the BUILD version, just update go versions in the release workflows.
go 1.26.1
go 1.26.3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the commit above, what is the motivation for bumping it in this case?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I was wondering also about this comment myself - not sure why it's there and why it's. problem to bump this version.....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a problem for anyone consuming some of these as a library. Upgrading the go requirement leads to a cascade of upgrades in dependant components. Hence the appeal on bumping it only when there is a pragmatic motivation.

Full disclaimer: Me employer in one such party.

@reggie-k reggie-k May 11, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is more relevant for cherry-picking Go bumps into an existing minor release - because it may be problematic to people that use Argo CD library to experience a breaking change upon an Argo CD patch release.
I think is is justified upgrading this for a new Argo CD minor release, even if at this point in time we don;t use any new language version features - because when we'd need to do so, cherry-picking the change into an existing minor release will result in a much poorer user experience.
@crenshaw-dev WDYT?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when we'd need to do so, cherry-picking the change into an existing minor release will result in a much poorer user experience

I'm not sure I follow... is the idea that we should have master require the latest possible go release so that when we cherry-pick changes, it's more likely that the old release branch is on a new enough version to support the cherry-picked changes?

I think that's kind of low benefit for the cost of library users having to constantly upgrade go versions. I don't see changes cherry-picked very often that use such new go features that the cherry pick fails.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just leave this as 1.26 with no patch version?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this may not work https://go.dev/doc/toolchain#version. That means if any of our dependencies declare a version > 1.26 (eg 1.26.0+) it will require us to update our go.mod.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, the requirements stack. Which is why we shouldn't bump to latest, it makes us a bad neighbor. I'd default to 1.x.0 any time we don't have a good reason to bump that last digit (which should be almost always, since go has really strong compatibility guarantees).

Comment thread gitops-engine/go.mod
@@ -1,6 +1,6 @@
module github.com/argoproj/argo-cd/gitops-engine

go 1.26.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just leave this as 1.26?

@reggie-k

Copy link
Copy Markdown
Member Author

@rumstead @crenshaw-dev I see what you are both saying.
So I think this PR is unnecessary, and going forward, upon a new Go minor (they actually call it major) we will just bump to 1.X.0 in go.mod and avoid bumping the patch part.
I will raise a docs PR to clarify how we should update Go versions.

@reggie-k reggie-k closed this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants